package com.java.observer;
/**
 * Observer pattern defines ont-to-many relationship betweenobjects
 * The target object sends change notifications to its registered observers.
 * @author Administrator
 *
 */
public class App {
    
	public static void main(String[] args){
		
		Weather weather = new Weather();
		weather.addObserver(new Orcs());;
		weather.addObserver(new Hobbits());
		
		weather.timePasses();
		weather.timePasses();
		weather.timePasses();
		weather.timePasses();
	}
	
}
